package com.ocom.wxapi.controller;

import com.ocom.common.constant.HumanServiceUrl;
import com.ocom.common.resp.Result;

import com.ocom.wxapi.service.MinioService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;


@RestController
public class MinioController {

    @Autowired
    MinioService minioService;

    /**
     * 文件上传（UpgradePage/importUpgrade）
     * */
    @PostMapping("/FileLoad")
    public Result FileLoad(@RequestPart("file") MultipartFile file){
        return minioService.FileLoad(file);
    }
}
